import { request } from ".";
import type { RESPONSE } from "../types/base";
import type { Comment, CommentForm } from "./type/commentType";


export const reqGetCommentByIdsByPage = (id:string,page:number,size:number)=>request.get<any,RESPONSE<{total:number,list:Comment[]}>>(`/api/comment/${id}`,{
    params:{size,page}
})
export const reqAddComment = (data:CommentForm)=>request.post<any,RESPONSE>("/api/comment/",{...data})